<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<s:actionerror cssClass="note-red" />
<s:form method="post" id="form" action="updatePrivateMailOptions.htm" theme="simple">
	<table width="100%">
		<tbody>
			<tr>
        		<td colspan="2" height="40" class="sectionheading bottom-border">Private Mail Option</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Enable Private Messages System:
				</td>
				<td>
					<s:select theme="simple" cssClass="Textfiled-border" value="%{privateMailOption.enablePrivateMessagesSystem}" name="privateMailOption.enablePrivateMessagesSystem" list="#{'on':'Yes', 'off':'No'}"></s:select>
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Messages HTML Manipulation:
				</td>
				<td>
					<s:select theme="simple" cssClass="Textfiled-border" value="%{privateMailOption.messagesHtmlManipulation}" name="privateMailOption.messagesHtmlManipulation" list="#{'Remove All HTML':'Remove All HTML', 'Disable All HTML':'Disable All HTML', 'Allow All HTML':'Allow All HTML', 'Allow Safe HTML':'Allow Safe HTML'}"></s:select>
				</td>
			</tr>

			<tr>
				<td class="verdana12blacknormal">
					Title Maximum Size:
				</td>
				<td class="verdana12blacknormal">
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.titleMaximumSize" size="10" value="%{privateMailOption.titleMaximumSize}" />
					Bytes
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Message Maximum Size:
				</td>
				<td class="verdana12blacknormal">
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.messageMaximumSize" size="10" value="%{privateMailOption.messageMaximumSize}" />
					Bytes
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Maximum TO Users:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.maximumToUsers" size="10" value="%{privateMailOption.maximumToUsers}" />
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Default Messages Per Page:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.defaultMessagesPerPage" size="10" value="%{privateMailOption.defaultMessagesPerPage}" />
				</td>
			</tr>

			<tr>
				<td class="verdana12blacknormal">
					Maximum Inbox Messages:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.maximumInboxMessages" size="10" value="%{privateMailOption.maximumInboxMessages}" />
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Maximum Sentbox Messages:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.maximumSentBoxMessages" size="10" value="%{privateMailOption.maximumSentBoxMessages}" />
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Maximum Saved Messages:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.maximumSavedMessages" size="10" value="%{privateMailOption.maximumSavedMessages}" />
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Maximum Drafts Messages:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.maximumDraftsMessages" size="10" value="%{privateMailOption.maximumDraftsMessages}" />
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Allow Users to Attach Files
				</td>
				<td>
					<s:select theme="simple" cssClass="Textfiled-border" value="%{privateMailOption.allowUsersToAttachFiles}" name="privateMailOption.allowUsersToAttachFiles" list="#{'on':'Yes', 'off':'No'}"></s:select>
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Maximum Number of Files Allowed to Attach:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.maximumNumberOfFilesAllowedToAttach" size="10" value="%{privateMailOption.maximumNumberOfFilesAllowedToAttach}" />
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Maximum Attached File Size (Per File):
				</td>
				<td class="verdana12blacknormal">
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.maximumAttachedFileSize" size="10" value="%{privateMailOption.maximumAttachedFileSize}" />
					KB
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Maximum Attached Combined Total Files Size
				</td>
				<td class="verdana12blacknormal">
					<s:textfield theme="simple" cssClass="Textfiled-border" name="privateMailOption.maximumAttachedCombinedTotalFilesSize" size="10" value="%{privateMailOption.maximumAttachedCombinedTotalFilesSize}" />
					KB
				</td>
			</tr>

			<tr>
				<td class="verdana12blacknormal">
					Allow any File Type to Attach:
				</td>
				<td>
					<s:select theme="simple" cssClass="Textfiled-border" value="%{privateMailOption.allowAnyFileTypeToAttach}" name="privateMailOption.allowAnyFileTypeToAttach" list="#{'on':'Yes', 'off':'No'}"></s:select>
				</td>
			</tr>
			<tr>
				<td class="verdana12blacknormal">
					Files Extensions Allowed:
					<br>
					Separate by a Space
				</td>
				<td>
					<s:textarea theme="simple" cssClass="Textfiled-border" name="privateMailOption.filesExtensionsAllowed" rows="5" cols="55" value="%{privateMailOption.filesExtensionsAllowed}"></s:textarea>
				</td>
			</tr>
		</tbody>
	</table>
	<br>

	<div>
		<center>
			<table>
				<tbody>
					<tr>
						<td>
							<s:submit theme="simple" type="image" src="../Admin-Images/save-chagnes-button.gif" value="Save Changes" name="submit" />
							<img onclick="document.getElementById('form').reset();" style="cursor: pointer;" src="../Admin-Images/reset-button.gif" alt="Cancel" />
						</td>
					</tr>
				</tbody>
			</table>
		</center>
	</div>
	<s:hidden name="privateMailOption.id" value="%{privateMailOption.id}"></s:hidden>
</s:form>
